import service from '@/utils/request'
// @Tags WorkInformation
// @Summary 创建workInformation表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.WorkInformation true "创建workInformation表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /workInformation/createWorkInformation [post]
export const createWorkInformation = (data) => {
  return service({
    url: '/workInformation/createWorkInformation',
    method: 'post',
    data
  })
}

// @Tags WorkInformation
// @Summary 删除workInformation表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.WorkInformation true "删除workInformation表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /workInformation/deleteWorkInformation [delete]
export const deleteWorkInformation = (params) => {
  return service({
    url: '/workInformation/deleteWorkInformation',
    method: 'delete',
    params
  })
}

// @Tags WorkInformation
// @Summary 批量删除workInformation表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除workInformation表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /workInformation/deleteWorkInformation [delete]
export const deleteWorkInformationByIds = (params) => {
  return service({
    url: '/workInformation/deleteWorkInformationByIds',
    method: 'delete',
    params
  })
}

// @Tags WorkInformation
// @Summary 更新workInformation表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.WorkInformation true "更新workInformation表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /workInformation/updateWorkInformation [put]
export const updateWorkInformation = (data) => {
  return service({
    url: '/workInformation/updateWorkInformation',
    method: 'put',
    data
  })
}

// @Tags WorkInformation
// @Summary 用id查询workInformation表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.WorkInformation true "用id查询workInformation表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /workInformation/findWorkInformation [get]
export const findWorkInformation = (params) => {
  return service({
    url: '/workInformation/findWorkInformation',
    method: 'get',
    params
  })
}

// @Tags WorkInformation
// @Summary 分页获取workInformation表列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取workInformation表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /workInformation/getWorkInformationList [get]
export const getWorkInformationList = (params) => {
  return service({
    url: '/workInformation/getWorkInformationList',
    method: 'get',
    params
  })
}

// @Tags WorkInformation
// @Summary 不需要鉴权的workInformation表接口
// @Accept application/json
// @Produce application/json
// @Param data query exampleReq.WorkInformationSearch true "分页获取workInformation表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /workInformation/getWorkInformationPublic [get]
export const getWorkInformationPublic = () => {
  return service({
    url: '/workInformation/getWorkInformationPublic',
    method: 'get',
  })
}
